package chapter15;

// 元祖  一次方法调用返回多个对象
// 2维元祖
public class Chapter15_2<A, B> {
    private final A a;
    private final B b;

    public Chapter15_2(A a, B b) {
        this.a = a;
        this.b = b;
    }

    public A getA() {
        return a;
    }

    public B getB() {
        return b;
    }
}
